<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE xsl:stylesheet>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output 
	method="text" 
	indent="yes" 
	encoding="utf-8" 
/>

<xsl:template match="document">
{ <xsl:apply-templates select="*" mode="json"/> }	
</xsl:template>

<xsl:template match="result" mode="json">result: <xsl:value-of select="."/></xsl:template>

</xsl:stylesheet>
